package com.manner.groupon.service.groupon;

import com.baomidou.mybatisplus.extension.service.IService;
import com.manner.groupon.common.BaseResponse;
import com.manner.groupon.model.dto.deuctionCoupon.UserGetDeductionCouponVo;
import com.manner.groupon.model.entity.DeductionCoupon;

import java.util.List;

/**
 * @Author: Manner
 * @Description: 针对表[tb_deduction_coupon(抵扣券表)]的数据库操作Service
 * @DateTime: 2024/12/1 18:25
 */
public interface DeductionCouponService extends IService<DeductionCoupon> {

    /**
     * @param shareUserPhone           分享赠送用户手机账号
     * @param receiveUserPhone         领取用户的手机账号
     * @param shareGiveCouponId 分享赠送的直减订单金额优惠券编号
     * @return BaseResponse
     * @description: 微信小程序分享转发给朋友, 赠送的直减订单金额的优惠券编号
     * @author Manner
     * @date 2024/12/2 15:09
     */
    String shareGiveGrouponCouponOrder(String shareUserPhone, String receiveUserPhone, Long shareGiveCouponId);

    /**
     * @param phone
     * @return List<DeductionCoupon>
     * @description: 获取当前登录用户的所有满减抵扣优惠券信息
     * @author Manner
     * @date 2024/12/1 23:29
     */
    List<UserGetDeductionCouponVo> getMyAllDeductionCoupon(String phone);
}
